﻿using System;

namespace NetMicro.Cache.RedisProvider
{
    /// <summary>
    /// 缓存策略
    /// </summary>
    public class CacheEntry
    {
        /// <summary>
        /// 绝对过期时间
        /// </summary>
        public TimeSpan AbsoluteExpiration { get; set; }

        /// <summary>
        /// 相对于现在绝对过期时间
        /// </summary>
        public TimeSpan? AbsoluteExpirationRelativeToNow { get; set; }

        /// <summary>
        /// 滑动过期时间
        /// </summary>
        public TimeSpan? SlidingExpiration { get; set; }

    }
}
